//学生（编号、姓名、性别、所选课程）
class student extends people{
    course course;
    String info[];
    student(int i,String n,String g){
        id=1;
        name=n;
        gender=g;
    }
    void xk(course n) {
        course=n;
    }
    void tk(course m){
        course=m;
    }
    public String toString(){
        return "课程编号:"+ this.course.id +"\n 课程名称:"+ this.course.cname +"\n 时间:"+ this.course.time+"\n 授课教师:"+this.course.teacher.name;
    }


}